tag @s add IBAARay
execute as @a[distance=..6,limit=3,team=!spectator,gamemode=!spectator] at @s anchored eyes positioned ^ ^ ^ run function vs:system/game_ctrol/void_shop/is_being_aimed_at/ray
tag @s remove IBAARay

execute if data entity @s item.components."minecraft:custom_data".VoidShopIBAA{ray:true} run return run data remove entity @s item.components."minecraft:custom_data".VoidShopIBAA
return fail